			<div class="fui-cell">
				<div class="fui-cell-label bold" style="width:auto;line-height: 1.1;">
					限时秒杀
				</div>
				<div class="fui-cell-text">
					 <div class="timer">
						<span class="time-hour">{{pagedata.jy_seckill.rest_time.hour || '00'}}</span>:<span class="time-min">{{pagedata.jy_seckill.rest_time.minute || '00'}}</span>:<span class="time-sec">{{pagedata.jy_seckill.rest_time.second || '00'}}</span>
					 </div>
				</div>
				<div class="fui-cell-remark" ng-click="access_json('jy_seckill/index/')">
					{{pagedata.seckills.length}}个商品即将抢光
				</div>
			</div>
			<div class="fui-goods-group block" style="margin:0;border-bottom: 1px solid #ebebeb;">
				<div ng-repeat="item in pagedata.seckills" class="fui-goods-item" style="width:25%;height:auto">
							<div ng-click="access_json('jy_weishop/goods.detail//id='+item.goodsid)" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="height:4rem;background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})">
								<div class="img-title" style="font-size:0.8rem;color:#fff">
									<i class="icon icon-shoukuan" style="color:#f8df22"></i> {{price(item.oldprice-item.price)}}
								</div>
							</div>
							<div ng-click="access_json('jy_weishop/goods.detail//id='+item.goodsid)" class="detail" style="height:auto">
								<div class="bold red c" style="font-size:0.8rem">
									￥{{item.price}}
								</div>
							</div>
				</div>
			</div>
<script language='javascript'>
scope.pagedata.seckills=[];
scope.pagedata.getseckills=function(){
	scope.get('jy_seckill/index/',function(res){
		console.log(res)
		res.times[0]=res.times[0]?res.times[0]:{};
		scope.pagedata.jy_seckill={}
		scope.pagedata.jy_seckill.rest_time=res.times[0].rest_time
		if(scope.pagedata.jy_seckill.rest_time){
			scope.tool.time_down(scope.pagedata.jy_seckill.rest_time);
			scope.get('jy_seckill/room//roomid='+res.roomid+'&timeid='+res.timeid,function(res){
					scope.pagedata.seckills =res.list;
					scope.$evalAsync();
			});
		}
	});
}
scope.pagedata.getseckills();
</script>